table of contents
lsm_nfs_list(3) | Libstoragemgmt C API Manual | lsm_nfs_list(3) |
NAME¶
lsm_nfs_list - Gets a list of NFS exports on this connection.
SYNOPSIS¶
int lsm_nfs_list (lsm_connect *conn, const char *search_key, const char *search_value, lsm_nfs_export **exports[], uint32_t *count, lsm_flag flags);
ARGUMENTS¶
- conn
- Valid connection.
- search_key
- Search key(NULL for all). Valid search keys are: "id", "fs_id".
- search_value
- Search value.
- exports[]
- Out pointer of lsm_nfs_export array. It should be manually freed by lsm_nfs_export_record_array_free.
- count
- uint32_t. Number of items in array.
- flags
- Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
VERSION¶
1.0
DESCRIPTION¶
Gets a list of NFS export on this connection. NFS export
properties could be retrieved by these functions:
* lsm_nfs_export_id_get
* lsm_nfs_export_fs_id_get
* lsm_nfs_export_export_path_get
* lsm_nfs_export_auth_type_get
* lsm_nfs_export_root_get
* lsm_nfs_export_read_write_get
* lsm_nfs_export_read_only_get
* lsm_nfs_export_anon_gid_get
* lsm_nfs_export_anon_uid_get
* lsm_nfs_export_options_get
CAPABILITY¶
LSM_CAP_EXPORTS
RETURN¶
Error code as enumerated by 'lsm_error_number'.
* LSM_ERR_OK
On success or searched value not found.
* LSM_ERR_INVALID_ARGUMENT
When any argument is NULL or invalid flags or invalid search
key.
* LSM_ERR_NO_SUPPORT
Not supported.
lsm_nfs_list | April 2021 |